package com.evil.account.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 模板表
 *
 * @author liyang
 * @date 2022-08-08 00:00
 */
@Data
@TableName(value = "evil_template")
public class Template implements Serializable {

    /**
     * id
     */
    @TableId(value = "template_id", type = IdType.AUTO)
    private Integer templateId;

    /**
     * 模板code(无特殊情况下，UUID生成，业务查询唯一值)
     */
    @TableField(value = "template_code")
    private String templateCode;

    /**
     * 模板名称
     */
    @TableField(value = "template_name")
    private String templateName;

    /**
     * 模板标题
     */
    @TableField(value = "template_title")
    private String templateTitle;

    /**
     * 模板内容
     */
    @TableField(value = "template_content")
    private String templateContent;

    /**
     * 模板类型(0:其他,1:用户)
     */
    @TableField(value = "template_type")
    private Integer templateType;

    /**
     * 模板附件
     */
    @TableField(value = "file_id")
    private Long fileId;

    /**
     * 备注
     */
    @TableField(value = "remark")
    private String remark;

    /**
     * 创建人id
     */
    @TableField(value = "creator_id")
    private Long creatorId;

    /**
     * 创建人名字
     */
    @TableField(value = "creator_name")
    private String creatorName;

    /**
     * 创建时间
     */
    @TableField(value = "created")
    private Date created;

    /**
     * 更新时间
     */
    @TableField(value = "updated")
    private Date updated;

    private static final long serialVersionUID = 1L;

    public static final String COL_TEMPLATE_ID = "template_id";

    public static final String COL_TEMPLATE_CODE = "template_code";

    public static final String COL_TEMPLATE_NAME = "template_name";

    public static final String COL_TEMPLATE_TITLE = "template_title";

    public static final String COL_TEMPLATE_CONTENT = "template_content";

    public static final String COL_TEMPLATE_TYPE = "template_type";

    public static final String COL_FILE_ID = "file_id";

    public static final String COL_REMARK = "remark";

    public static final String COL_CREATOR_ID = "creator_id";

    public static final String COL_CREATOR_NAME = "creator_name";

    public static final String COL_CREATED = "created";

    public static final String COL_UPDATED = "updated";
}